function Pacman::onLevelLoaded(%this, %scenegraph) {
   $PacmanVar = %this;
   
   moveMap.bindCmd(keyboard, "up", "", "goUp();");	
   moveMap.bindCmd(keyboard, "down", "", "goDown();");	
   moveMap.bindCmd(keyboard, "left", "", "goLeft();");	
   moveMap.bindCmd(keyboard, "right", "", "goRight();");	

}

function goUp() {
	$PacmanVar.setPositionY($PacmanVar.getPositionY() -1);
}	
function goDown() {
	$PacmanVar.setPositionY($PacmanVar.getPositionY() +1);
}	
function goLeft() {
	$PacmanVar.setPositionX($PacmanVar.getPositionX() -1);
}	
function goRight() {
	$PacmanVar.setPositionX($PacmanVar.getPositionX() +1);
}	
